package com.example.tables.service.impl;

import com.example.tables.bean.TableABean;
import com.example.tables.dao.TableADao;
import com.example.tables.service.TableAService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service(value = "TableAService")
public class TableAServiceImpl implements TableAService {
    @Autowired
    TableADao tableADao;
    @Override
    public int addData(TableABean tableABean) {
        return tableADao.addData(tableABean);
    }

    @Override
    public int update(String a, String b, String c, String d, String e, String f, int aa, int bb, int cc, int dd, int ee) {
        tableADao.update( a,  b,  c,  d,  e,  f,  aa,  bb,  cc,  dd,  ee);
        return 1;
    }

    @Override
    public int delete(String a) {
        return tableADao.delete(a);
    }

    @Override
    public List<TableABean> getData(String a) {
        return tableADao.getData(a);
    }


}
